#ifndef __HARDWARE_LED_H__
#define __HARDWARE_LED_H__

#include "Common_Time.h"

#define LED1 GPIO_ODR_ODR0
#define LED2 GPIO_ODR_ODR1
#define LED3 GPIO_ODR_ODR8

/**
 * @brief 初始化
 * 
 */
void HardWare_LED_Init(void);

/**
 * @brief 打开OLED
 * 
 * @param led 
 */
void HardWare_LED_On(uint16_t led);

/**
 * @brief 关闭LED
 * 
 * @param led 
 */
void HardWare_LED_Off(uint16_t led);

/**
 * @brief 全部打开
 * 
 * @param led_array 
 * @param led_lenth 
 */
void HardWare_LED_AllOn(uint16_t *led_array, uint8_t led_lenth);

/**
 * @brief 全部关闭
 * 
 * @param led_array 
 * @param led_lenth 
 */
void HardWare_LED_AllOff(uint16_t *led_array, uint8_t led_lenth);

/**
 * @brief 反转
 * 
 * @param led 
 */
void HardWare_LED_Toggle(uint16_t led);

#endif /* __HARDWARE_LED_H__ */